package zestaw4.niezmiennosc_obiektow;

/**
 * Author: Daniel
 * Date: 03.08.13
 */

public class Box {
    private final Dimension dim;
    private String cont;

    public Box(Dimension dim, String cont) {
        this.dim = dim;
        this.cont = cont;
    }

    public Dimension getDim() {
        return dim;
    }

    public String getCont() {
        return cont;
    }

    public void show() {
        System.out.println("Pudełko: " +
                dim.getWidth() +
                "x" + dim.getHeight() +
                " Zawartość: " + cont);
    }
}
